package HLLibClasses;

import HLCode.HLClassManager;
import HLCode.HLLibClass;
import HLCode.HLObject;
import HLLib.base.HLAppSetting;
import HLLib.base.HLString;

public class HLClassAppSetting extends HLLibClass {
    public HLClassAppSetting(HLClassManager owner) {
        super(owner);
    }

    public HLObject NewObject() {
        return new HLAppSetting();
    }

    public void Execute(HLObject self, int index, HLObject args, HLObject resultOwnerObject, int resultIndex) {
        switch (index) {
        case 0: {
            ((HLAppSetting) self).PinchEnabled(args.GetBoolean(0));
            break;
        }
        case 1: {
            ((HLAppSetting) self).MultipleTouchEnabled(args.GetBoolean(0));
            break;
        }
        case 2: {
            ((HLAppSetting) self).SetHandfereAppID((HLString)args.GetObject(0));
            break;
        }
        case 3: {
            ((HLAppSetting) self).SetAppleAppID((HLString)args.GetObject(0));
            break;
        }
        case 4: {
            ((HLAppSetting) self).SetFacebookAppID((HLString)args.GetObject(0));
            break;
        }
        case 5: {
            ((HLAppSetting) self).SetTwitterAppKeyAndSecret((HLString)args.GetObject(0), (HLString)args.GetObject(1));
            break;
        }
        case 6: {
            ((HLAppSetting) self).SetTapjoyAppIDAndSecret((HLString)args.GetObject(0), (HLString)args.GetObject(1));
            break;
        }
        case 7: {
            ((HLAppSetting) self).SetADMobAppID((HLString)args.GetObject(0));
            break;
        }
        case 8: {
            ((HLAppSetting) self).SetMobiSageAppID((HLString)args.GetObject(0));
            break;
        }
        case 9: {
            ((HLAppSetting) self).SetAWAppID((HLString)args.GetObject(0));
            break;
        }
        case 10: {
            ((HLAppSetting) self).SetSmartMadAppID((HLString)args.GetObject(0));
            break;
        }
        case 11: {
            ((HLAppSetting) self).SetADWallEnabled(args.GetBoolean(0));
            break;
        }
        case 12: {
            ((HLAppSetting) self).SetADBannerEnabled(args.GetBoolean(0));
            break;
        }
        case 13: {
            ((HLAppSetting) self).SetSupportDirect(args.GetInt(0));
            break;
        }
        case 14: {
            ((HLAppSetting) self).SetFlurryEnabled(args.GetBoolean(0));
            break;
        }
        case 15: {
            ((HLAppSetting) self).SetFlurryAppID((HLString)args.GetObject(0));
            break;
        }
        case 16: {
            ((HLAppSetting) self).Set16BitsITouch(args.GetBoolean(0));
            break;
        }
        case 17: {
            ((HLAppSetting) self).SetLiMeiAPPID((HLString)args.GetObject(0));
            break;
        }
        case 18: {
            ((HLAppSetting) self).Set91AppIdAndKey((HLString)args.GetObject(0), (HLString)args.GetObject(1));
            break;
        }
        case 19: {
            ((HLAppSetting) self).SetUse91(args.GetBoolean(0));
            break;
        }
        }
    }

    public void StaticExecute(int index, HLObject args, HLObject resultOwnerObject, int resultIndex) {
        switch (index) {
        case 0: {
            if (resultOwnerObject == null) {
                HLAppSetting.ShareSetting();
            } else {
                resultOwnerObject.SetObject(resultIndex, HLAppSetting.ShareSetting());
            }
            break;
        }
        case 1: {
            HLAppSetting.Dispose();
            break;
        }
        case 2: {
            if (resultOwnerObject == null) {
                HLAppSetting.GetBundleID();
            } else {
                resultOwnerObject.SetObject(resultIndex, HLAppSetting.GetBundleID());
            }
            break;
        }
        }
    }
}
